package cn.stylefeng.guns.modular.manager.entity;

import cn.stylefeng.guns.modular.manager.model.result.FlowGoodsPriceResult;
import cn.stylefeng.guns.modular.manager.model.result.FlowGoodsResult;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 物品分类
 * </p>
 *
 * @author yumker
 * @since 2021-01-07
 */
@TableName("flow_goods_type")
public class FlowGoodsType implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "goods_type_id", type = IdType.AUTO)
    private Long goodsTypeId;

    @TableField("type_name")
    private String typeName;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;
      @TableField(exist = false)
      private List<FlowGoodsResult> flowGoodsResults;

    public List<FlowGoodsResult> getFlowGoodsResults() {
        return flowGoodsResults;
    }

    public void setFlowGoodsResults(List<FlowGoodsResult> flowGoodsResults) {
        this.flowGoodsResults = flowGoodsResults;
    }

    public Long getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Long goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "FlowGoodsType{" +
        "goodsTypeId=" + goodsTypeId +
        ", typeName=" + typeName +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
